<form id="chose-renewal-project" name="choseRenewalProjForm" novalidate class="renewal-form">
    <section ng-if="!nextStep">
        <div class="step-info">
            <div class="step-wrap">
                <table class="steps" cellspacing="0" cellpadding="0" style="max-height:350px;overflow: auto">
                    <tbody>
                    <tr>
                        <td class="first-step active">
                            <div>1.选择要续签的项目<span class="after"></span></div>
                        </td>
                        <td class="">
                            <div><span class="before"></span>2.授权<span></span></div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>

        <div class="section-table mt10 ">
            <div class="table-header lh30 pb5 fr" style="border-bottom:none">
                <input type="text" class="fl input-text w200 ml3 ng-pristine ng-untouched ng-valid" placeholder="项目名称"
                       ng-model="keyword" ng-enter="renewalExecute()">
                <a class="btn" href="javascript: void(0)" ng-click="renewalExecute()">搜索</a>
            </div>
            <span class="clearfix"></span>
            <div class="table-wrap mh60 mt10 " style="height: 400px;overflow: auto">
                <table class="table">
                    <thead>
                    <tr>
                        <th width="30"><input type="checkbox" ng-click="checkAll()" ng-model="selectedAll"
                                              class="ng-pristine ng-untouched ng-valid"></th>
                        <th class="" width="60">序号</th>
                        <th width="120">项目所在地</th>
                        <th width="160">项目名称</th>
                        <th width="120">产品名称</th>
                        <th width="140" class="align-m">租期</th>
                        <th width="60" class="align-m">状态</th>
                        <th width="120" class="align-m">合同号</th>
                        <th width="50" class="align-m">续签次数</th>
                    </tr>
                    </thead>
                    <tbody class="renewal-tbody">
                    <tr ng-repeat="item in renewalItems" ng-click="projClick(item)">
                        <td height="40"><input id="proj_{{$index}}" ng-model="item.Selected" type="checkbox"
                                               ng-click="toggleObjSelection($event)"></td>
                        <td>{{$index+1}}</td>
                        <td>{{item.City}}</td>
                        <td>{{item.ProjectName}}</td>
                        <td><p class="pd6">{{item.AppName}}</p></td>
                        <td class="align-m"><p class="pd6">{{item.BeginOn |strdate:'yyyy-MM-dd' }} 至 {{item.EndOn
                            |strdate:'yyyy-MM-dd' }}</p></td>
                        <td class="align-m"><p class="pd6">{{item.Status}}</p></td>
                        <td class="align-m"><p class="pd6">{{item.ContractCode}}</p></td>
                        <td class="align-m"><p class="pd6" ui-tip template="{{showRenewCount(item)}}">
                            {{item.RenewCount}}</p></td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>

        <div class="ui-dialog-footer renewal-button">
            <button type="button" ng-click="nextRenewal()" class="ui-dialog-autofocus">下一步</button>
            <button type="button" ng-click="closeRenewal()">取消</button>
        </div>

    </section>
    <section ng-if="nextStep" class="form-horizontal ">
        <div class="step-info">
            <div class="step-wrap">
                <table class="steps" cellspacing="0" cellpadding="0">
                    <tbody>
                    <tr>
                        <td class="first-step ">
                            <div>1.选择要续签的项目<span class="after"></span></div>
                        </td>
                        <td class="active">
                            <div><span class="before"></span>2.授权<span></span></div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>

        <div class="form-group mt30">
            <span class="col-sm-3 control-label">合同号:</span>
            <div class="col-sm-10">
                <input type="text" ng-model="contractNum"
                       class="form-control ng-touched ng-valid ng-pristine bd-radius-none"
                       ng-disabled="true" placeholder="合同号" disabled>
            </div>

        </div>

        <div class="form-group mt10">
            <span class="col-sm-3 control-label">授权情况:</span>
            <div class="col-sm-18 proj-view">
                <span ng-repeat="app in applicationInfo">{{app.FriendlyName}}<i>{{app.Num}}</i></span>
            </div>
        </div>


        <div class="form-group mt10 authorize-form" style="height:265px;overflow:auto">
            <div class="authorize-item clearfix" ng-repeat="reProj in renewalProjects">
                <span class="col-sm-6 control-label ">{{reProj.ProjectName}}</span>
                <div class="col-sm-18 application">
                    <span class="col-sm-6 lh30" ng-repeat="reApp in reProj.Apps">
                        <input type="checkbox" ng-model="reApp.selected"
                               ng-disabled="disableCheck(reApp)"
                               ng-click="updateSelection(reApp)"
                               id="application_{{$parent.$index}}_{{$index}}">
                        <label for="application_{{$parent.$index}}_{{$index}}">{{reApp.FriendlyName}}</label>
                    </span>
                </div>
            </div>
        </div>

        <div class="ui-dialog-footer renewal-button">
            <button type="button" ng-click="prevRenewal()" class="ui-dialog-autofocus">上一步</button>
            <button type="button" ng-click="confirmRenewal()" class="ui-dialog-autofocus">确定</button>
            <button type="button" ng-click="closeRenewal()">取消</button>
        </div>

    </section>
</form>





